package com.shuoyue.ycgk.entity;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

/**
 * 专业门科
 */
@Data
public class MajorType {
    String name;
    List<Major> majors;
    boolean select;

    public void setMajorsss(String majs) {
        if (majs != null) {
            if (majors == null) {
                majors = new ArrayList<>();
            }
            String[] ss = majs.split("，");
            for (String s : ss) {
                Major major = new Major();
                major.setName(s);
                majors.add(major);
            }
        }
    }
}
